package com.ruoyi.quartz.mapper;

import java.util.List;
import com.ruoyi.quartz.domain.YongyouCgdd;
import org.apache.ibatis.annotations.Param;

/**
 * 采购订单Mapper接口
 * 
 * @author SYF
 * @date 2025-04-17
 */
public interface YongyouCgddMapper 
{
    /**
     * 查询采购订单
     * 
     * @param vouchdate 采购订单主键
     * @return 采购订单
     */
    public YongyouCgdd selectYongyouCgddByVouchdate(String vouchdate);

    /**
     * 查询采购订单列表
     * 
     * @param yongyouCgdd 采购订单
     * @return 采购订单集合
     */
    public List<YongyouCgdd> selectYongyouCgddList(YongyouCgdd yongyouCgdd);

    /**
     * 新增采购订单
     * 
     * @param yongyouCgdd 采购订单
     * @return 结果
     */
    public int insertYongyouCgdd(YongyouCgdd yongyouCgdd);

    public int deleteYongyouCgddByDate(@Param("vouchdate") String date);

    /**
     * 修改采购订单
     * 
     * @param yongyouCgdd 采购订单
     * @return 结果
     */
    public int updateYongyouCgdd(YongyouCgdd yongyouCgdd);

    /**
     * 删除采购订单
     * 
     * @param vouchdate 采购订单主键
     * @return 结果
     */
    public int deleteYongyouCgddByVouchdate(String vouchdate);

    /**
     * 批量删除采购订单
     * 
     * @param vouchdates 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYongyouCgddByVouchdates(String[] vouchdates);

    public int clearCgdd();
}
